home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '91 / '91 Attendee Contributions / Dewayne Hendricks Stuff / NET⁄Mac 2.2 / Autoexec.net < prev    next >
Encoding:
Text File  |  1991-04-21  |  6.6 KB  |  212 lines  |  [TEXT/ttxt]

  1. # Macintosh-specific "autoexec.net" config. file
  2. # for version 2.2   (Do not change the name or the location
  3. # of this file, as Net/Mac will not find it.)
  4. #
  5. # When installing TCP for your node, be sure to replace all
  6. # occurrences of YOURCALL here with your callsign and all
  7. # occurrences of IPADDRESS with the IP address that was
  8. # assigned to you by your local IP Address Coordinator.
  9. # (You MUST have a distinct personal IP address for every
  10. # station you put on the air; if you don't know what this
  11. # means, ask others active on TCP how to get one.)
  12. #
  13. # Read Bdale's Documentation to understand this file better.
  14. #
  15. # Define who we are -- this must come first in this file:
  16. #
  17. hostname YOURCALL
  18. ax25 mycall YOURCALL
  19. #
  20. # Path to the Hosts.Net file - It could reside on another volume, or
  21. # be buried in another folder.  Also the file can now be named what-
  22. # ever you desire.  Note that double quotes are required if there are
  23. # any space characters in the path name, otherwise they are not needed.
  24. #
  25. hostfile "HD:Net:Hosts.net"
  26. #
  27. # Attach interfaces:
  28. # Syntax for a Macintosh using the modem port for AX25:
  29. # attach <hw type> <not used but needs to be here> <string version
  30. # of the port  ('a' or 'b')> <mode> <label> <bufsize> <mtu> <speed>
  31. #
  32. # The following typical attach command for the Mac says that you
  33. # will use an asynchronous port, specifically port 'a' (modem
  34. # port), talking to an "ax25" (i.e. KISS-based) TNC.  The name you
  35. # will use when running TCP to refer to this port is "ax0".  You
  36. # allow a maximum of 2048 bytes of buffer; packets are no more
  37. # than 256 bytes long.  You talk to the port at 9600 baud.
  38. #
  39. attach asy 1 a ax25 ax0 2048 256 9600
  40. #
  41. # The following describes the parameters for the AppleTalk driver.
  42. # Note that this is a very simple AppleTalk interface, and will only
  43. # work with another Mac in the same AppleTalk zone running this
  44. # version of Net/Mac.  (uses the LAP protocol)
  45. #
  46. # argv[0]: hardware type, must be "appletalk"
  47. # argv[1]: Protocol Type, e.g., "77"
  48. # argv[2]: device name,must be "b"
  49. # argv[3]: mode, must be "arpa"
  50. # argv[4]: interface label, e.g., "at0"
  51. # argv[5]: maximum number of packets allowed on receive queue, e.g., "5"
  52. # argv[6]: maximum transmission unit, bytes, e.g., "600" < appletalk limitation.
  53. #
  54. # attach appletalk 77 b arpa at0 5 600
  55. #
  56. # Insert your personal IP address in []'s:
  57. #
  58. ip addr [IPADDRESS]
  59. #
  60. # By default all packets will go out the "ax0" port:
  61. #
  62. route add default ax0
  63. #
  64. # The format is:  param <label> <hex value> <hex value> ...
  65. #
  66. # As an example, a TNC-1 with an old crystal transmitter that is
  67. # slow to key may need longer TXDELAY and TXTAIL values than the
  68. # defaults, e.g.:
  69. #
  70. param ax0 1 40
  71. param ax0 2 200
  72. param ax0 3 10
  73. param ax0 4 3
  74. param ax0 5 0
  75. #
  76. # Time To Live is the maximum number of hops a packet can take
  77. # before it is thrown away. This command prevents an infinite
  78. # loop from occuring with packets in the network.
  79. #
  80. ip ttl 16
  81. #
  82. # The Maximum Segment Size is the largest single transmission that
  83. # you will send. An mss of 216 corresponds to the mtu of 256 set
  84. # up in the attach command above, overhead bytes considered.
  85. #
  86. tcp mss 216
  87. #
  88. # The Window parameter establishes the maximum number of bytes
  89. # that may be outstanding before your system expects an ack. If
  90. # window is twice as big as mss, for example, there will be two
  91. # active packets on the channel at any given time... large values
  92. # of window provide improved throughput on full-duplex links, but
  93. # are a problem on the air.  Keep  mss <= window <= 2*mss if
  94. # you're on the air.
  95. #
  96. tcp window 432
  97. #
  98. # set round trip time to 5 seconds - the original documentation states
  99. # this value as seconds, when it should be milliseconds!
  100. #
  101. tcp irtt 5000
  102. #
  103. # Tell TCP where to keep a log file - note the leading ':' character.
  104. # The current directory prefix will be appended to the front of this entry.
  105. #
  106. log :spool:log
  107. #
  108. #
  109. # Tell TCP to start up each of its daemons:
  110. start smtp
  111. start ftp
  112. start echo
  113. start discard
  114. start telnet
  115. start finger
  116. #
  117. # smtp timer below sets the amount of time between attempts to send
  118. # messages in the queue.  The value of 180 (seconds) sets it to every 3 min.
  119. # commented out for now, once you are familiar with smtp, you may change
  120. # this to meet your local needs.  Three minutes is a good number if your station
  121. # is up 24hrs/day.  If not, adjust to more like 10 minutes (600 seconds)
  122. #
  123. #smtp timer 180   
  124. #
  125. # Set the escape character - this is required for the Mac 512/Plus
  126. # keyboards.  You may comment it out for the ADB keyboards.
  127. #
  128. escape `
  129. #
  130. # Set the local timezone and offset to GMT
  131. #
  132. tzone PST 0
  133. #
  134. # Setup mailbox function for AX25 connects
  135. #
  136. mbox y
  137. #
  138. #
  139. # The following command is optional, and allows you to provide a
  140. # callsign lookup function assuming you have an appropriate datafile.
  141. # There are two parameters, the first is the path to the data file, and the
  142. # second is the path to a logging file.
  143. #
  144. #callbk Ham:Callsign:callsign.db Ham:Callsign:callsign.log
  145. #
  146. # The following commands turn on the beacon function.
  147. # The first command set which port to beacon on.  The second command
  148. # is the callsign to beacon to (QST is everyone), the third line is the actual
  149. # beacon message followed by the beacon interval in seconds, and finally
  150. # the last command turns on the beacon.
  151. #
  152. beacon set ax0
  153. beacon callsign QST
  154. beacon message "[44.xxx.yyy.zzz] TCP/IP station - Yourtown, ST, USA"
  155. beacon interval 1200
  156. beacon enable
  157. #
  158. # Enable the Proxy ARP facility.  This function allows for automatic
  159. # digipeating (so to speak) between several stations without having
  160. # to explicidly adding arp entries.
  161. #
  162. is_es enable
  163. #
  164. # enable IP Heard command.  Keeps a running list of stations heard on
  165. # the channel.  Typing IP H at the net> prompt will display the last 20 or
  166. # so stations that have been heard.  You may also us AX25 H to see the last
  167. # 20 ax25 stations.
  168. #
  169. ip heard on
  170. #
  171. # The next entry set the default arp address.  You may add additional arp
  172. # entries as needed.
  173. #
  174. arp add [44.4.0.0] ax0 QST-0
  175. #
  176. # AX.25 CONFIGURATION:
  177. # The values in the following entries reflect default values.
  178. # These values come into play when you are operating in the  AX.25
  179. # mode, along with your "ax25 mycall" entry above. 
  180. #
  181. # Disable AX.25 digipeating, and let them eat cake:
  182. #
  183. ax25 digipeat on
  184. #
  185. # Set the max number of frames allowed to remain unacknowledged--
  186. # cannot be greater than 7, and 1 is a good number:
  187. #
  188. ax25 maxframe 1
  189. #
  190. # Limit the size of I=fields:
  191. #
  192. ax25 paclen 256
  193. #
  194. # Limit the number of unsuccessful retransmissions:
  195. #
  196. ax25 retry 6
  197. #
  198. # Set the number of bytes that can be pending on an AX.25 receive
  199. # queue:
  200. #
  201. ax25 window 4096
  202. #
  203. ax25 t1 15000
  204. ax25 t2 10000
  205. ax25 t3 180000
  206. #
  207. # Turn on the mheard command in tcp...
  208. #
  209. ax25 heard on
  210. #
  211. # End of Autoexec.net
  212.